package kr.hkit.powerjava.chapter14.work;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
public class Programming01_panel extends JPanel {
	private JLabel lblNewLabel;
	private JTextField textField;
	private JTextField Result;
	public Programming01_panel() {
		initialize();
	}
	private void initialize() {
		lblNewLabel = new JLabel("거리를 마일 단위로 입력하시오");
		add(lblNewLabel);
		textField = new JTextField();
		add(textField);
		textField.setColumns(5);
	}
	public String getTextField() {
		return textField.getText();}
	public void setTextField(String text) {
		textField.setText(text);}
	public String getResult() {
		return Result.getText();}
	public void setResult(String text) {
		Result.setText(text);	}
}
